package com.ninthgroup.mapper;

import com.ninthgroup.entity.Dept;
import com.ninthgroup.entity.TechnicalOffice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptMapper {
    int deleteByPrimaryKey(Integer deptId);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Integer deptId);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);

    /**
     * @create by: 1452863884@qq.com rcg
     * @description:部门
     * @create time: 2022/10/19 14:53
     * @param deptName
     * @param deptStatus
     * @return java.util.List<com.ninthgroup.entity.Dept>
     */
    List<Dept> selectByCondition(@Param("deptName") String deptName, @Param("deptStatus") Integer deptStatus);


    List<String> selectAllOfficeName(Integer deptId);

}